package cn.dogeye.service.impl;

import cn.dogeye.dao.SysRoleAuthRelationDao;
import cn.dogeye.entity.SysRoleAuthRelation;
import cn.dogeye.service.SysRoleAuthRelationService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.HashMap;
import java.util.List;

/**
* @author 86184
* @description 针对表【sys_role_auth_relation】的数据库操作Service实现
* @createDate 2021-12-10 18:29:07
*/
@Service
public class SysRoleAuthRelationServiceImpl extends ServiceImpl<SysRoleAuthRelationDao, SysRoleAuthRelation> implements SysRoleAuthRelationService{


    @Override
    public void delRelByAuthId(List<String> authIds) {
        HashMap<String,List<String>> map=new HashMap<>();
        map.put("authIds",authIds);
        baseMapper.delRelByAuthId(map);
    }

    @Override
    public void saveAuthId(Integer sysAuthId) {
        baseMapper.saveAuthId(sysAuthId);
    }
}




